﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Details.aspx.cs" Inherits="WebUI.pro.Details" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript" language="javascript">
    function intoedit()
    {
        
        document.getElementById("txtTitle").disabled="";
        document.getElementById("txtRemark").disabled="";
        document.getElementById("ddlFavorite").disabled="";
        document.getElementById("txtURL").disabled="";
        document.getElementById("fileImg").disabled="";;
        document.getElementById("imgtr").style.display="none";
        document.getElementById("upimg").style.display="block";
        document.getElementById("cmd").style.display="block";
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <a onclick="intoedit()">进入编辑状态 </a>
        <table>
            <tr id="imgtr">
                <td colspan="2">
                    <asp:Image ID="img" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    标题：
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtTitle" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    说明：
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtRemark" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    网址：
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtURL" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    类别：
                </td>
                <td>
                    <asp:DropDownList ID="ddlFavorite" runat="server" Enabled="false">
                    </asp:DropDownList>
                </td>
            </tr>
            
            <tr id="upimg"
             style="display: none">
                <td>
                    图片：
                </td>
                <td>
                    <asp:FileUpload ID="fileImg" runat="server" Enabled="false" />
                </td>
            </tr>
            <tr>
            <td id="cmd" colspan="2" style="display:none">
                <asp:Button ID="btnSave"  runat="server" Text="保存" onclick="btnSave_Click" />
            </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
